<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" />
    <script type="text/javascript" th:src="@{/js/jquery.min.js}" ></script>
    <script type="text/javascript" th:src="@{/js/bootstrap.min.js}" ></script>
</head>
<body>
<a th:href="@{/to_add_User.do}">添加</a>
<table class="table table-responsive" width="500px" border="1px" cellpadding="3px" cellspacing="2px">
    <thead>
    <tr>
        <td>编号</td>
        <td>年龄</td>
        <td>密码</td>
        <td>用户名</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    <tr th:each="user:${page.list}">
        <td th:text="${user.userId}"></td>
        <td th:text="${user.age}"></td>
        <td th:text="${user.password}"></td>
        <td th:text="${user.userName}"></td>
        <td>
            <a th:href="@{/delete_User.do/{id}(id=${user.userId})}">删除</a>
            <!--<a th:href="@{'/delete_User.do?id='+${user.userId}}">删除</a>-->
            <a th:href="@{'/query_UserByID.do?id='+${user.userId}}">修改</a>
        </td>
    </tr>
    <tr>
        <td colspan="5">
            <a th:href="${page.navigateFirstPage}">首页</a>
            <a th:href="${page.prePage}">上一页</a>

            <a th:href="${page.nextPage}">下一页</a>
            <a th:href="${page.navigateLastPage}">尾页</a>
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>